<template>
  <div>
     <vue-office-excel
        :src="excel"
        class="excel-calss"
    />
  </div>
</template>

<script setup lang='ts'>
import { ref } from 'vue'
//引入VueOfficeExcel组件
import VueOfficeExcel from '@vue-office/excel'
//引入相关样式
import '@vue-office/excel/lib/index.css'
const props=defineProps({
  excel:{
    type:ArrayBuffer,
    default:null
  }
})

</script>
<style scoped lang='scss'>
.excel-calss{
  height: calc(100vh - 60px);
}
</style>